<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <head>
        <th:block th:include="include::header('隐患类型')" />
    </head>
    <body class="febs-container" id="febs-hazardTypeOperation">
        <div class="febs-body layui-fluid"  lay-title="隐患类型" >
            <div class="febs-body-search">
                <form class="jhg-body layui-form layui-table-form" lay-filter="hazardTypeOperation-table-form" id="hazardTypeOperation-table-form">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">隐患类型名称</label>
                                    <div class="layui-input-inline" style="width:190px;">
                                        <input type="text" name="typeName" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
<!--                                <div class="layui-inline">-->
<!--                                    <label class="layui-form-label layui-form-label-sm">事故类型</label>-->
<!--                                    <div class="layui-input-inline" style="width:190px;">-->
<!--                                        <select name="majorAccidentFlg" id="majorAccidentFlg">-->
<!--                                            <option value="1">重大事故</option>-->
<!--                                            <option value="0">一般事故</option>-->
<!--                                        </select>-->
<!--                                    </div>-->
<!--                                </div>-->
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">状态</label>
                                    <div class="layui-input-inline" style="width:190px;">
                                        <select name="status" id="status">
                                            <option value="1">启用</option>
                                            <option value="0">禁用</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <div id="query" class="layui-btn">
                                        <em class="layui-icon">&#xe615;</em> 查询
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="febs-table-full">
                <table lay-filter="hazardTypeOperationTable" id="hazardTypeOperationTable'}" lay-data="{id: 'hazardTypeOperationTable'}"></table>
            </div>
        </div>
        <th:block th:include="include::foot" />
        <script type="text/html" id="hazardTypeOperation-toolbar">
            <div lay-event="add" class="layui-btn layui-btn-sm" shiro:hasPermission="hazardTypeOperation:add">
                <em class="layui-icon">&#xe654;</em> 新增
            </div>
        </script>
        <script type="text/html" id="statusOption">
            <input type="checkbox" name="statusOption" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用"
                   lay-filter="statusOption" lay-event="statusEvent" {{ d.status== '1' ? 'checked' : '' }} />
        </script>
        <script type="text/html" id="hazardTypeOperation-tool">
            <span shiro:lacksPermission="hazardTypeOperation:edit,hazardTypeOperation:delete">
                <span class="layui-badge-dot febs-bg-orange"></span> 无权限
             </span>
            <button type="button" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-orange" lay-event="edit" shiro:hasPermission="hazardTypeOperation:edit">
                <i class="layui-icon layui-icon-edit">编辑</i></button>
            <button type="button" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-red" lay-event="del" shiro:hasPermission="hazardTypeOperation:delete">
                <i class="layui-icon layui-icon-delete">删除</i></button>
        </script>
        <script th:src="@{/febs/js/hazard/hazardTypeOperation/hazardTypeOperationList.js(v=1)}"></script>
    </body>
</html>